package com.mall.dw.feign;

import com.mall.common.util.RespResult;
import com.mall.dw.model.HotGoods;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * @author Darren
 * @date 2022-10-14 16:02
 * Description：
 */
@FeignClient("mall-dw")
@RequestMapping("/hot/goods")
public interface HotGoodsFeign {

    @PostMapping("/list/{size}/{hour}/{max}")
    @ApiOperation("热门商品查询")
    RespResult<List<Map<String, String>>> searchHotGoods(@PathVariable("size") Integer size, @PathVariable("hour") Integer hour,
                                                   @RequestBody String[] urls, @PathVariable("max") Integer max);

}
